package com.yanyeori.utilscollection.jira;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * jira字段配置
 * @author chenkuan
 * @date 2023/5/26
 */
@Getter
@Setter
@TableName("jira_field_config")
public class JiraFieldConfig {

    @TableId(type = IdType.AUTO)
    private Long id;

    //项目
    private String project;

    //问题类型
    private String issueType;

    //字段代码
    private String fieldCode;

    //字段名称
    private String fieldName;

    //字段类型(STR-字符串、STR_TAG-字符多标签、SEL_SIN-下拉单选、SEL_MUL-下拉多选、DATE-日期)
    private FieldTypeEnum fieldType;

    //字段默认值(多选英文逗号分隔)
    private String fieldDefault;

    //实体bean字段，无默认值时从bean取值
    private String beanField;

    //是否启用
    private Boolean enabled;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
